package com.itheima.ydd.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.ydd.entity.Result;
import com.itheima.ydd.entity.YddArticle;
import org.springframework.http.ResponseEntity;

public interface YddArticleService extends IService<YddArticle> {
    ResponseEntity<Result> findPages(String startTime, String endTime, String title, String cateid, Integer page, Integer limit);

    ResponseEntity<Result> deleteById(Integer id);

    ResponseEntity<Result> add(YddArticle yddArticle);

    ResponseEntity<Result> selectById(Integer id);

    ResponseEntity<Result> updateArticle(YddArticle yddArticle);
}
